package com.systemic.mapper;

import com.systemic.pojo.GroupRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: GroupRelationMapper
 * @Description:
 * @Author:
 * @CreateTime: 2024-02-01 07:47
 * @Version:
 **/
@Mapper
public interface GroupRelationMapper extends BaseMapper<GroupRelation>{

    /**
     * 查询用户加入了哪些团体
     * @param uid
     * @param offset
     * @param pageSize
     * @return
     */
    List<GroupRelation> selectListByUid(@Param("uid") Integer uid,
                                        @Param("offset") Integer offset,
                                        @Param("pageSize") Integer pageSize);


    List<GroupRelation> selectListByGid(@Param("groupId") Integer groupId,
                                        @Param("offset") Integer offset,
                                        @Param("pageSize") Integer pageSize);
}
